package com.baige.service.statistic.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 页面统计
 * </p>
 *
 * @author wulg
 * @since 2018-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("page_statistic")
public class PageStatistic extends Model<PageStatistic> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 页面
     */
    private String page;
    /**
     * 页面名称
     */
    @TableField("page_name")
    private String pageName;
    /**
     * ip
     */
    private String ip;
    /**
     * 停留时间
     */
    @TableField("stay_time")
    private Integer stayTime;
    /**
     * 访问时间
     */
    @TableField("access_time")
    private Date accessTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
